package com.x.aoki.payment8001.service.impl;

import com.x.aoki.common.pojo.Payment;
import com.x.aoki.payment8001.mapper.PaymentMapper;
import com.x.aoki.payment8001.service.IPaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 支付接口的实现
 *
 * @author caoy
 * @date 2025-02-14 16:39:51
 */
@Service
public class PaymentServiceImpl implements IPaymentService {

    @Resource
    private PaymentMapper paymentMapper;

    @Override
    public int create(Payment payment) {
        return paymentMapper.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
